package com.situ.day3;

public class Changfangxing {
	private int kuan;
	private int gao;
	
	public Changfangxing(){
		this.kuan = 1;
		this.gao = 1;
	}
	public Changfangxing(int kuan){
		this.kuan = kuan;
		this.gao = kuan;
	}
	
	public Changfangxing(int kuan,int gao){
		this.kuan = kuan;
		this.gao = gao;
	}
	public int mianJi(){
		return kuan * gao;
	}
	public int zhouChang(){
		return (gao + kuan) * 2;
	}
}
